#!/usr/bin/env python


import sys

for line in sys.stdin:
    arr = line.strip().split(' ')
    for word in arr:
       print ('\t'.join([word.strip(), '1']))
